#include <iostream>
#include <string>
int main_str1()
{
    using namespace std;
    cout << "Please input your name:" << endl;
    string aString;
    cin >> aString;
    cout << "First: " << aString << endl;
    cin >> aString;
    cout << "Second: " << aString << endl;
    /*
    输出:
    Please input your name:
    mike wong
    First: mike
    Second: wong
    解释: cin是直接从缓冲区中读的，它遇到空格、tab会停止输入。同时只要缓存区中有值就不会请求输入
    所以，这里只会等待用户输入一次。
    */
    return 0;
}
